package com.controller;

import java.util.HashMap;
import java.util.Map;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class TestController {
	@RequestMapping("/test")
	@ResponseBody
	public Map<String, Object> test() {
		Map<String, Object> result = new HashMap<String, Object>();
		result.put("msg", "测试成功");
		result.put("data", "i hata this world!");
		return result;
	}
	
	@RequestMapping("/a")
	public String a() {
		return "regist";
	}

}
